package com.hxexp.weixin.test.api;

import org.junit.FixMethodOrder;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.junit.runners.MethodSorters;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.ContextConfiguration;

import com.hxexp.weixin.common.exception.APIException;
import com.hxexp.weixin.hpe.api.passengerlist.PassengerListAPI;
import com.hxexp.weixin.hpe.api.passengerlist.model.PassengerListParamBean;
import com.hxexp.weixin.hpe.api.passengerlist.model.PassengerListResultBean;
import com.hxexp.weixin.test.runner.JUnit4WithSpringLogClassRunner;

/**
 * HPE常用乘车人列表接口实现类测试
 *
 * @author wang.bin
 *
 */
@RunWith(JUnit4WithSpringLogClassRunner.class)
@FixMethodOrder(MethodSorters.NAME_ASCENDING)
@ContextConfiguration(locations = { "classpath:conf/spring/spring-biz.xml", "classpath:conf/spring/spring-ehcache.xml" })
public class PassengerListAPIImplTester {

    @Autowired
    private PassengerListAPI passengerListAPI;

    @Test
    public void testCase01() throws APIException {

        PassengerListParamBean passengerListParamBean = new PassengerListParamBean();
        PassengerListResultBean returnValue = new PassengerListResultBean();
        // 设置请求参数
        passengerListParamBean.setUserId("16229bd2ca19455facd7df4dd030d0a1");

        returnValue = passengerListAPI.getPassengerList(passengerListParamBean);
        System.out.println(returnValue);

    }
}
